package org.ourgrid.worker.collectors.gmond;

import org.ourgrid.common.interfaces.WorkerSpecListener;
import org.ourgrid.common.spec.worker.WorkerSpec;

import br.edu.ufcg.lsd.commune.api.Remote;

@Remote
public class FakeGMondCollectorClient implements WorkerSpecListener {

	private static final long serialVersionUID = 1L;
	public static final String NAME = "fakegmondcollectorclient";
	
	private boolean called = false;
	
	public boolean wasCalled() {
		return called;
	}

	public void updateWorkerSpec(WorkerSpec workerSpec) {
		System.out.println(workerSpec.toString());
		
	}

//	public void updateAttributes(ServiceID serviceID, Map<String, String> attributes) {
//		called = true;
//		System.out.println("\n\nMetrics: ");
//		System.out.println(attributes);
//	}

}
